//
// Created by lingzhitech on 25-9-22.
//

#include "Quote.h"

#include <ostream>

double printTotal(std::ostream &os, const Quote &item, std::size_t n) {
    double ret = item.netPrice(n);
    os << "ISBN: " << item.isbn() // calls Quote::isbn
            << " # sold: " << n << " total due: " << ret << std::endl;
    return ret;
}
